package com.wuchao.utils;

/**
 * @Author wuchao66
 * @Date 2022/7/12 15:21
 * @Version 1.0
 */
public class SingleLazyMan {//懒汉模式
    //1 私有实例
    private static SingleLazyMan singleLazyMan;
    //2 私有构造函数
    private SingleLazyMan(){
    }
    //3公有访问函数
    public static synchronized SingleLazyMan getInstance(){
        return singleLazyMan==null?new SingleLazyMan():singleLazyMan;
    }
}
